package com.atguigu.gulimall.gulimallcoupon.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
@Getter
public enum CouponTypeName {
//    [0->全场赠券；1->会员赠券；2->购物赠券；3->注册赠券]
    QUANCHANG(0,"全场赠券"),HUIYUAN(1,"全场赠券")
   ;
    @EnumValue
    private Integer couponTyp;
    @JsonValue
    private String couponTypeName;

    CouponTypeName(Integer couponTyp, String couponTypeName) {
        this.couponTyp = couponTyp;
        this.couponTypeName = couponTypeName;
    }

//    @Override
//    public String toString() {
//        return couponTypeName;
//    }
}
